package com.dongan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@SpringBootApplication
//开启事务
@EnableTransactionManagement
//开启异步请求任务
@EnableAsync
public class ErpRearControllerApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(ErpRearControllerApplication.class, args);
//        for (String name : run.getBeanDefinitionNames()) {
//            System.out.println("name = " + name);
//        }
    }

}
